<template>
    <div>
        <van-nav-bar title="订单" left-text="返回" left-arrow @click-left="() => { $router.push('/login/a3') }" />
        <van-tabs v-model:active="active">
            <van-tab title="订单">
                <div v-for="item in data">
                    <p>订单名称:{{ item.mc }}</p>
                    <p>订单id:{{ item.id }}</p>
                    <p>订单时间:{{ item.sj }}</p>
                    <p>订单价格:{{ item.jg }}</p>
                    <router-link :to="'/ddtz'">
                        <van-button type="primary" size="large">确认支付</van-button>
                    </router-link>
                </div>
            </van-tab>
            <van-tab title="全部订单">内容 2</van-tab>
        </van-tabs>


    </div>
</template>

<script setup>
// import { ddApi } from '@/api/api'
// import { ref } from 'vue';
// let dd = ref([])
// ddApi().then(res => {
//     console.log('订单', res)
//     dd.value = res.data.data
// })
let data = ([
    { mc: '创维(Skyworth) 43M9 43英寸 4K超高清智能网络LED液晶平板电视等', id: 'mzwmt552wh', sj: '2025-03-10 15:07:21', jg: '569800' },
])
</script>

<style lang="scss" scoped></style>